<?php 

/*

***************************************
*                                     *
* Copyright 2011 David Matthew Pugh   *
* Contact Info:thebravedave@gmail.com *
*                                     *
***************************************

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/



/* 
 *	This is the main page.
 *	This page doesn't do much.
 */



$companynamearray = file('./configurational/companyname.php');        
$companynamestring = "";
foreach($companynamearray as $key => $value)
{
     if(strpos($value, "companyname") !== false)
     {
        $companynamestring = $value;
     }
 }
$companynamearray = explode("=", $companynamestring);
$companyname = trim($companynamearray[1]);   
$page_title = $companyname;
include_once ('./includes/sidebar.php');

// Page-specific content goes here:
echo '<h1>' . $page_title . '</h1>'; 
?>
<p>Welcome to <?php  echo $page_title;?>, the premier store with the best prices.</p>
<p>This is a fully functional ecommerce package. It's available under a <a href="http://www.gnu.org/licenses/gpl.html">free software license</a>.</p>
<p>Feel free to browse the site and make purchases. I made up the items, and nothing is really for sale. 
<p>Use Visas test credit card number 4930393959259322 with expiration date of 02/2019 when testing the software with credit card checkout. </p>  
<p>For PayPal purchases use public_1313729268_per@gmail.com as your PayPal user name and publicpass as your password. </p>
<p>Contact David Pugh for a tour of the administrative side of this website</p>
<p>If you're interested in the software, it's available for free, or with a small contribution.</p>
<p>Paid support and installation services are available. Contact David Pugh at thebravedave@gmail.com for more information.</p>
<p align="center"><b>Please choose a category to the right.</p></b>




<?php

// Include the footer file to complete the template:
include_once ('./includes/footer.html');
          
?>
